16 lines
521 B
Dart
16 lines
521 B
Dart
import '../../marianumconnect_query.dart';
|
|
import 'absence_prefill_response.dart';
|
|
|
|
/// GETs the absence-report form prefill (`absence/prefill`, bearer-auth).
|
|
/// Guardians pass the [childId] the report is for; the identity then comes
|
|
/// from that child.
|
|
class AbsencePrefill extends MarianumConnectQuery {
|
|
AbsencePrefill({super.dio});
|
|
|
|
Future<AbsencePrefillResponse> run({String? childId}) => getObject(
|
|
'absence/prefill',
|
|
AbsencePrefillResponse.fromJson,
|
|
queryParameters: {'childId': ?childId},
|
|
);
|
|
}
|