CustomError.fromJson constructor

CustomError.fromJson(
  1. Map json_
)

Implementation

CustomError.fromJson(core.Map json_)
  : this(
      rules: (json_['rules'] as core.List?)
          ?.map(
            (value) => CustomErrorRule.fromJson(
              value as core.Map<core.String, core.dynamic>,
            ),
          )
          .toList(),
      types: (json_['types'] as core.List?)
          ?.map((value) => value as core.String)
          .toList(),
    );