Name.fromJson constructor Null safety

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

Create a Name from JSON data.

Implementation

Name.fromJson(Map<String, dynamic> json)
    : _name = json['name'],
      _changedToAt = json['changedToAt'] ?? 0;