fromJson static method

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

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

Implementation

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

  return ReportEmbedded(
    assignment: Assignment.fromJson(json[r'assignment']),
    category: Category.fromJson(json[r'category']),
    children: Operation.listFromJson(json[r'children']),
    documents: Document.listFromJson(json[r'documents']),
    feedback: Feedback.fromJson(json[r'feedback']),
    place: Place.fromJson(json[r'place']),
    targetGroups: TargetGroup.listFromJson(json[r'targetGroups']),
    workflow: OperationEmbeddedWorkflow.fromJson(json[r'workflow']),
  );
}