fromMap static method
Gets a possible CustomSchemeRegistration instance from a Map value.
Implementation
static CustomSchemeRegistration? fromMap(Map<String, dynamic>? map) {
if (map == null) {
return null;
}
final instance = CustomSchemeRegistration(
allowedOrigins: map['allowedOrigins'] != null
? List<String>.from(map['allowedOrigins']!.cast<String>())
: null,
hasAuthorityComponent: map['hasAuthorityComponent'],
scheme: map['scheme'],
treatAsSecure: map['treatAsSecure'],
);
return instance;
}