ModifyMembershipRolesRequest.fromJson constructor

ModifyMembershipRolesRequest.fromJson(
  1. Map json_
)

Implementation

ModifyMembershipRolesRequest.fromJson(core.Map json_)
    : this(
        addRoles: json_.containsKey('addRoles')
            ? (json_['addRoles'] as core.List)
                .map((value) => MembershipRole.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        removeRoles: json_.containsKey('removeRoles')
            ? (json_['removeRoles'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        updateRolesParams: json_.containsKey('updateRolesParams')
            ? (json_['updateRolesParams'] as core.List)
                .map((value) => UpdateMembershipRolesParams.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );