Build.fromJson constructor

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

Implementation

factory Build.fromJson(Map<String, dynamic> json) {
  return Build(
    buildArn: json['BuildArn'] as String?,
    buildId: json['BuildId'] as String?,
    creationTime: timeStampFromJson(json['CreationTime']),
    name: json['Name'] as String?,
    operatingSystem:
        (json['OperatingSystem'] as String?)?.toOperatingSystem(),
    sizeOnDisk: json['SizeOnDisk'] as int?,
    status: (json['Status'] as String?)?.toBuildStatus(),
    version: json['Version'] as String?,
  );
}