toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'provider'] = this.provider;
    json[r'accountId'] = this.accountId;
  if (this.accountName != null) {
    json[r'accountName'] = this.accountName;
  } else {
    json[r'accountName'] = null;
  }
    json[r'status'] = this.status;
  if (this.error != null) {
    json[r'error'] = this.error;
  } else {
    json[r'error'] = null;
  }
  if (this.nextPageToken != null) {
    json[r'nextPageToken'] = this.nextPageToken;
  } else {
    json[r'nextPageToken'] = null;
  }
  return json;
}