Birthdate.fromJson constructor

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

Creates a Birthdate object from a JSON map.

Implementation

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