fromJson static method

SortByOption fromJson(
  1. Map<String, dynamic> json
)
override

Implementation

static SortByOption fromJson(Map<String, dynamic> json) {
  return SortByOption(
    id: json['id'],
    asc: json['asc'] ?? true,
    jsonKey: json['json_key'],
  );
}