ListedServer.fromJson constructor

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

Implementation

factory ListedServer.fromJson(Map<String, dynamic> json) {
  return ListedServer(
    arn: json['Arn'] as String,
    endpointType: (json['EndpointType'] as String?)?.toEndpointType(),
    identityProviderType:
        (json['IdentityProviderType'] as String?)?.toIdentityProviderType(),
    loggingRole: json['LoggingRole'] as String?,
    serverId: json['ServerId'] as String?,
    state: (json['State'] as String?)?.toState(),
    userCount: json['UserCount'] as int?,
  );
}