ChangeSummary.fromJson constructor

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

Implementation

factory ChangeSummary.fromJson(Map<String, dynamic> json) {
  return ChangeSummary(
    changeType: json['ChangeType'] as String?,
    details: json['Details'] as String?,
    entity: json['Entity'] != null
        ? Entity.fromJson(json['Entity'] as Map<String, dynamic>)
        : null,
    errorDetailList: (json['ErrorDetailList'] as List?)
        ?.whereNotNull()
        .map((e) => ErrorDetail.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}