factory ImageConfig.fromJson(Map<String, dynamic> json) { return ImageConfig( repositoryAccessMode: (json['RepositoryAccessMode'] as String).toRepositoryAccessMode(), ); }