fromJson static method

ScriptCreateRequest fromJson(
  1. dynamic value
)

Returns a new ScriptCreateRequest instance and imports

Implementation

// ignore: prefer_constructors_over_static_methods
static ScriptCreateRequest fromJson(dynamic value) {
  final json = value.cast<String, dynamic>();
  return ScriptCreateRequest(
    name: mapValueOfType<String>(json, r'name'),
    description: mapValueOfType<String>(json, r'description'),
    script: mapValueOfType<String>(json, r'script'),
    language: json[r'language'] == null
        ? null
        : ScriptLanguage.fromJson(json[r'language']),
  );
}