fromJson static method

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

Returns a new AssignmentData instance and imports its values from json if it's non-null, null if json is null.

Implementation

static AssignmentData? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return AssignmentData(
    description: json[r'description'],
    report: json[r'report'],
    service: json[r'service'],
  );
}