Membership.fromJson constructor

Membership.fromJson(
  1. Map json_
)

Implementation

Membership.fromJson(core.Map json_)
    : this(
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        deleteTime: json_.containsKey('deleteTime')
            ? json_['deleteTime'] as core.String
            : null,
        groupMember: json_.containsKey('groupMember')
            ? Group.fromJson(
                json_['groupMember'] as core.Map<core.String, core.dynamic>)
            : null,
        member: json_.containsKey('member')
            ? User.fromJson(
                json_['member'] as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        role: json_.containsKey('role') ? json_['role'] as core.String : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
      );