ChangeProgressStatusDetails.fromJson constructor

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

Implementation

factory ChangeProgressStatusDetails.fromJson(Map<String, dynamic> json) {
  return ChangeProgressStatusDetails(
    changeId: json['ChangeId'] as String?,
    changeProgressStages: (json['ChangeProgressStages'] as List?)
        ?.whereNotNull()
        .map((e) => ChangeProgressStage.fromJson(e as Map<String, dynamic>))
        .toList(),
    completedProperties: (json['CompletedProperties'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    pendingProperties: (json['PendingProperties'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    startTime: timeStampFromJson(json['StartTime']),
    status: (json['Status'] as String?)?.toOverallChangeStatus(),
    totalNumberOfStages: json['TotalNumberOfStages'] as int?,
  );
}