fromJson static method

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

Implementation

static Birthdate? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return Birthdate(
    day: (json['day'] as int?) ?? 0,
    month: (json['month'] as int?) ?? 0,
    year: (json['year'] as int?) ?? 0,
  );
}