SAMLAttributeMapping.fromJson constructor

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

Implementation

factory SAMLAttributeMapping.fromJson(Map<String, dynamic> json) {
  final keys =
      json.field<Map<dynamic, dynamic>?>('keys')?.cast<String, dynamic>() ??
      const {};
  return SAMLAttributeMapping({
    for (final key in keys.keys) key: SAMLAttribute.fromJson(keys.field(key)),
  });
}