OidcDisplayObject.fromJson constructor

OidcDisplayObject.fromJson(
  1. dynamic data
)

Implementation

OidcDisplayObject.fromJson(dynamic data) {
  var jsonData = credentialToMap(data);
  name = jsonData['name'];
  locale = jsonData['locale'];
  description = jsonData['description'];
  backgroundColor = jsonData['background_color'];
  textColor = jsonData['text_color'];

  if (jsonData.containsKey('logo')) {
    logo = UrlData.fromJson(jsonData['logo']);
  }
}