toJson method

Map<String, dynamic> toJson()

Implementation

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