PushMechanism.fromJson constructor

PushMechanism.fromJson(
  1. Map<String, dynamic> json, [
  2. Account? account
])

Deserializes the specified Json into an object of the PushMechanism object.

Implementation

factory PushMechanism.fromJson(Map<String, dynamic> json,
    [Account? account]) {
  return PushMechanism(
      json['id'],
      json['mechanismUID'],
      json['issuer'],
      json['accountName'],
      json['type'],
      json['secret'],
      json['registrationEndpoint'],
      json['authenticationEndpoint'],
      json['timeAdded'],
      account);
}