AppConfig.fromJson constructor

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

Implementation

factory AppConfig.fromJson(Map<String, dynamic> json) {
  return AppConfig(
    termsUrl: json['termsUrl'] as String,
    privacyUrl: json['privacyUrl'] as String,
    registrationSteps: (json['registrationSteps'] as List<dynamic>)
        .map((e) => RegistrationStep.fromJson(e as Map<String, dynamic>))
        .toList(),
    authMethods: (json['authMethods'] as List<dynamic>)
        .map((e) => AuthMethod.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}