toJson method
Converts this GridField to a json representation
Implementation
Map<String, dynamic> toJson() => {
'id': id,
'name': name,
if (key != null) 'key': key,
if (schema != null) 'schema': schema,
'_links': links.toJson(),
'type': {'name': type.backendName},
};