Repository.fromJson constructor
Repository.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Repository.fromJson(Map<String, dynamic> json) {
return Repository(
createdAt: timeStampFromJson(json['createdAt']),
encryptionConfiguration: json['encryptionConfiguration'] != null
? EncryptionConfiguration.fromJson(
json['encryptionConfiguration'] as Map<String, dynamic>)
: null,
imageScanningConfiguration: json['imageScanningConfiguration'] != null
? ImageScanningConfiguration.fromJson(
json['imageScanningConfiguration'] as Map<String, dynamic>)
: null,
imageTagMutability:
(json['imageTagMutability'] as String?)?.toImageTagMutability(),
registryId: json['registryId'] as String?,
repositoryArn: json['repositoryArn'] as String?,
repositoryName: json['repositoryName'] as String?,
repositoryUri: json['repositoryUri'] as String?,
);
}