toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() {
  final data = super.toJson().copy();
  // some old data may have the verified and blocked keys which are unneeded now
  data.remove('verified');
  data.remove('blocked');
  return data;
}