GetAssignmentResponse.fromJson constructor

GetAssignmentResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory GetAssignmentResponse.fromJson(Map<String, dynamic> json) {
  return GetAssignmentResponse(
    assignment: json['Assignment'] != null
        ? Assignment.fromJson(json['Assignment'] as Map<String, dynamic>)
        : null,
    hit: json['HIT'] != null
        ? HIT.fromJson(json['HIT'] as Map<String, dynamic>)
        : null,
  );
}