InsightImpactGraphService.fromJson constructor

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

Implementation

factory InsightImpactGraphService.fromJson(Map<String, dynamic> json) {
  return InsightImpactGraphService(
    accountId: json['AccountId'] as String?,
    edges: (json['Edges'] as List?)
        ?.whereNotNull()
        .map(
            (e) => InsightImpactGraphEdge.fromJson(e as Map<String, dynamic>))
        .toList(),
    name: json['Name'] as String?,
    names: (json['Names'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    referenceId: json['ReferenceId'] as int?,
    type: json['Type'] as String?,
  );
}