TemplateError.fromJson constructor

TemplateError.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory TemplateError.fromJson(Map<String, dynamic> json) {
  return TemplateError(
    message: json['Message'] as String?,
    type: (json['Type'] as String?)?.toTemplateErrorType(),
  );
}