Date.fromJson constructor

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

Parse from a json

Implementation

factory Date.fromJson(Map<String, dynamic> json) => Date(
      day: json['day'],
      month: json['month'],
      year: json['year'],
    );