toJSON method Null safety

Map<String, dynamic> toJSON()
override

Implementation

Map<String, dynamic> toJSON() => {
      'userId': userId.toJSON(),
    };