RequestCreateDTO.fromJson constructor
Implementation
factory RequestCreateDTO.fromJson(Map<String, Object?> json) {
return RequestCreateDTO(
channel: json[r'channel'] as String?,
form: json[r'form'] != null
? Form.fromJson(json[r'form']! as Map<String, Object?>)
: null,
isAdfRequest: json[r'isAdfRequest'] as bool? ?? false,
raiseOnBehalfOf: json[r'raiseOnBehalfOf'] as String?,
requestFieldValues: json[r'requestFieldValues'] as Map<String, Object?>?,
requestParticipants: (json[r'requestParticipants'] as List<Object?>?)
?.map((i) => i as String? ?? '')
.toList() ??
[],
requestTypeId: json[r'requestTypeId'] as String?,
serviceDeskId: json[r'serviceDeskId'] as String?,
);
}