toJson method

Map<String, dynamic> toJson ()

Implementation

Map<String, dynamic> toJson() {
  return {
    'user': {
      'shortName': this.shortName,
      'firstName': this.firstName,
      'lastName': this.lastName,
      'phone': this.phoneNumber.toJson(),
      'joined': this.joined,
    },
    'pubKey': this.publicKey
  };
}