ConfigurationProfile.fromJson constructor

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

Implementation

factory ConfigurationProfile.fromJson(Map<String, dynamic> json) {
  return ConfigurationProfile(
    applicationId: json['ApplicationId'] as String?,
    description: json['Description'] as String?,
    id: json['Id'] as String?,
    locationUri: json['LocationUri'] as String?,
    name: json['Name'] as String?,
    retrievalRoleArn: json['RetrievalRoleArn'] as String?,
    validators: (json['Validators'] as List?)
        ?.whereNotNull()
        .map((e) => Validator.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}