Application.fromJson constructor

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

Load an application from a JSON map.

The method may throw an AssertionError if the application contains empty strings.

Implementation

Application.fromJson(Map<String, dynamic> json)
    : appId = json['appId'] as String,
      clientId = json['clientId'] as String,
      keyId = json['keyId'] as String,
      key = json['key'] as String {
  assert(appId != '');
  assert(clientId != '');
  assert(keyId != '');
  assert(key != '');
}