I18nErrorMessage.fromJson constructor

I18nErrorMessage.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory I18nErrorMessage.fromJson(Map<String, Object?> json) {
  return I18nErrorMessage(
    i18nKey: json[r'i18nKey'] as String?,
    parameters: (json[r'parameters'] as List<Object?>?)
            ?.map((i) => i as String? ?? '')
            .toList() ??
        [],
  );
}