Ami.fromJson constructor

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

Implementation

factory Ami.fromJson(Map<String, dynamic> json) {
  return Ami(
    accountId: json['accountId'] as String?,
    description: json['description'] as String?,
    image: json['image'] as String?,
    name: json['name'] as String?,
    region: json['region'] as String?,
    state: json['state'] != null
        ? ImageState.fromJson(json['state'] as Map<String, dynamic>)
        : null,
  );
}