OpsItemSummary.fromJson constructor

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

Implementation

factory OpsItemSummary.fromJson(Map<String, dynamic> json) {
  return OpsItemSummary(
    actualEndTime: timeStampFromJson(json['ActualEndTime']),
    actualStartTime: timeStampFromJson(json['ActualStartTime']),
    category: json['Category'] as String?,
    createdBy: json['CreatedBy'] as String?,
    createdTime: timeStampFromJson(json['CreatedTime']),
    lastModifiedBy: json['LastModifiedBy'] as String?,
    lastModifiedTime: timeStampFromJson(json['LastModifiedTime']),
    operationalData: (json['OperationalData'] as Map<String, dynamic>?)?.map(
        (k, e) => MapEntry(
            k, OpsItemDataValue.fromJson(e as Map<String, dynamic>))),
    opsItemId: json['OpsItemId'] as String?,
    opsItemType: json['OpsItemType'] as String?,
    plannedEndTime: timeStampFromJson(json['PlannedEndTime']),
    plannedStartTime: timeStampFromJson(json['PlannedStartTime']),
    priority: json['Priority'] as int?,
    severity: json['Severity'] as String?,
    source: json['Source'] as String?,
    status: (json['Status'] as String?)?.toOpsItemStatus(),
    title: json['Title'] as String?,
  );
}