toJson method

Map<String, dynamic> toJson()
override

Creates a JSON string representation of PushMechanism object.

Implementation

Map<String, dynamic> toJson() => {
      'id': id,
      'issuer': issuer,
      'accountName': accountName,
      'mechanismUID': mechanismUID,
      'type': 'pushauth',
      'secret': 'REMOVED',
      'authenticationEndpoint': authenticationEndpoint,
      'registrationEndpoint': null,
    };