ApproverDTO.fromJson constructor

ApproverDTO.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory ApproverDTO.fromJson(Map<String, Object?> json) {
  return ApproverDTO(
    approver: json[r'approver'] != null
        ? UserDTO.fromJson(json[r'approver']! as Map<String, Object?>)
        : null,
    approverDecision: json[r'approverDecision'] != null
        ? ApproverDTOApproverDecision.fromValue(
            json[r'approverDecision']! as String)
        : null,
  );
}