toJSON method

Map<String, dynamic> toJSON()
override

Implementation

Map<String, dynamic> toJSON() => {
      'provider': (_providerId == null || _providerId?.length == 0)
          ? null
          : _providerId,
      'userId': _id,
    };