Invitation.fromJson constructor

Invitation.fromJson(
  1. Map json_
)

Implementation

Invitation.fromJson(core.Map json_)
    : this(
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        role: json_.containsKey('role') ? json_['role'] as core.String : null,
        targetAccount: json_.containsKey('targetAccount')
            ? Account.fromJson(
                json_['targetAccount'] as core.Map<core.String, core.dynamic>)
            : null,
        targetLocation: json_.containsKey('targetLocation')
            ? TargetLocation.fromJson(json_['targetLocation']
                as core.Map<core.String, core.dynamic>)
            : null,
        targetType: json_.containsKey('targetType')
            ? json_['targetType'] as core.String
            : null,
      );