toJson method Null safety

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'result': result,
      'response': response,
      'data': data.toJson(),
      'relationships': relationships.map((e) => e.toJson()).toString(),
    };