Date.fromJson constructor

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

Implementation

factory Date.fromJson(Map<String, dynamic> json) {
  return Date(
    year: json['year'] ?? 0,
    month: json['month'] ?? 0,
    day: json['day'] ?? 0,
  );
}