toJSON method

Map<String, dynamic> toJSON()
override

Implementation

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