User.fromJson constructor

User.fromJson(
  1. Map json_
)

Implementation

User.fromJson(core.Map json_)
    : this(
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
        userId: json_.containsKey('userId')
            ? json_['userId'] as core.String
            : null,
      );