toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      if (links.isNotEmpty) 'links': links,
      if (meta.isNotEmpty) 'meta': meta,
    };