VideoAbuseReportReasonSnippet.fromJson constructor

VideoAbuseReportReasonSnippet.fromJson(
  1. Map json_
)

Implementation

VideoAbuseReportReasonSnippet.fromJson(core.Map json_)
    : this(
        label:
            json_.containsKey('label') ? json_['label'] as core.String : null,
        secondaryReasons: json_.containsKey('secondaryReasons')
            ? (json_['secondaryReasons'] as core.List)
                .map((value) => VideoAbuseReportSecondaryReason.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );