Creates a new instance from json.
json
factory SortField.fromJson(Map<String, dynamic> json) { return SortField(json['name'], json['ascending']); }