User.fromJson constructor

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

The factory uses a normalized JSON map so that keys from both source formats are handled.

Implementation

factory User.fromJson(Map<String, dynamic> json) =>
    _$UserFromJson(_normalizeUserJson(json));