Script.fromJson constructor

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

Implementation

factory Script.fromJson(Map<String, dynamic> json) {
  return Script(
    creationTime: timeStampFromJson(json['CreationTime']),
    name: json['Name'] as String?,
    scriptArn: json['ScriptArn'] as String?,
    scriptId: json['ScriptId'] as String?,
    sizeOnDisk: json['SizeOnDisk'] as int?,
    storageLocation: json['StorageLocation'] != null
        ? S3Location.fromJson(json['StorageLocation'] as Map<String, dynamic>)
        : null,
    version: json['Version'] as String?,
  );
}