EnterpriseCrmEventbusProtoSuspensionConfig.fromJson constructor

EnterpriseCrmEventbusProtoSuspensionConfig.fromJson(
  1. Map json_
)

Implementation

EnterpriseCrmEventbusProtoSuspensionConfig.fromJson(core.Map json_)
    : this(
        customMessage: json_.containsKey('customMessage')
            ? json_['customMessage'] as core.String
            : null,
        notifications: json_.containsKey('notifications')
            ? (json_['notifications'] as core.List)
                .map((value) =>
                    EnterpriseCrmEventbusProtoNotification.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        suspensionExpiration: json_.containsKey('suspensionExpiration')
            ? EnterpriseCrmEventbusProtoSuspensionExpiration.fromJson(
                json_['suspensionExpiration']
                    as core.Map<core.String, core.dynamic>)
            : null,
        whoMayResolve: json_.containsKey('whoMayResolve')
            ? (json_['whoMayResolve'] as core.List)
                .map((value) =>
                    EnterpriseCrmEventbusProtoSuspensionAuthPermissions
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );