InstanceInfo.fromJson constructor

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

Implementation

factory InstanceInfo.fromJson(Map<String, dynamic> json) {
  return InstanceInfo(
    deregisterTime: timeStampFromJson(json['deregisterTime']),
    iamSessionArn: json['iamSessionArn'] as String?,
    iamUserArn: json['iamUserArn'] as String?,
    instanceArn: json['instanceArn'] as String?,
    instanceName: json['instanceName'] as String?,
    registerTime: timeStampFromJson(json['registerTime']),
    tags: (json['tags'] as List?)
        ?.whereNotNull()
        .map((e) => Tag.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}