fromJson static method

DbUpdate fromJson(
  1. dynamic value
)

Returns a new DbUpdate instance and imports its values from value if it's a Map, null otherwise.

Implementation

// ignore: prefer_constructors_over_static_methods
static DbUpdate fromJson(dynamic value) {
  if (value is Map) {
    final json = value.cast<String, dynamic>();
    return DbUpdate(
      database: mapValueOfType<String>(json, r'Database'),
      updateScript: mapValueOfType<String>(json, r'UpdateScript'),
    );
  }
  return null;
}