ExportSnapshotRecord.fromJson constructor

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

Implementation

factory ExportSnapshotRecord.fromJson(Map<String, dynamic> json) {
  return ExportSnapshotRecord(
    arn: json['arn'] as String?,
    createdAt: timeStampFromJson(json['createdAt']),
    destinationInfo: json['destinationInfo'] != null
        ? DestinationInfo.fromJson(
            json['destinationInfo'] as Map<String, dynamic>)
        : null,
    location: json['location'] != null
        ? ResourceLocation.fromJson(json['location'] as Map<String, dynamic>)
        : null,
    name: json['name'] as String?,
    resourceType: (json['resourceType'] as String?)?.toResourceType(),
    sourceInfo: json['sourceInfo'] != null
        ? ExportSnapshotRecordSourceInfo.fromJson(
            json['sourceInfo'] as Map<String, dynamic>)
        : null,
    state: (json['state'] as String?)?.toRecordState(),
  );
}