GetIdentityPoolConfigurationResponse.fromJson constructor

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

Implementation

factory GetIdentityPoolConfigurationResponse.fromJson(
    Map<String, dynamic> json) {
  return GetIdentityPoolConfigurationResponse(
    cognitoStreams: json['CognitoStreams'] != null
        ? CognitoStreams.fromJson(
            json['CognitoStreams'] as Map<String, dynamic>)
        : null,
    identityPoolId: json['IdentityPoolId'] as String?,
    pushSync: json['PushSync'] != null
        ? PushSync.fromJson(json['PushSync'] as Map<String, dynamic>)
        : null,
  );
}