DeprecationStatus.fromJson constructor

DeprecationStatus.fromJson(
  1. Object? j
)

Implementation

factory DeprecationStatus.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return DeprecationStatus(
    deleted: switch (json['deleted']) {
      null => null,
      Object $1 => decodeString($1),
    },
    deprecated: switch (json['deprecated']) {
      null => null,
      Object $1 => decodeString($1),
    },
    obsolete: switch (json['obsolete']) {
      null => null,
      Object $1 => decodeString($1),
    },
    replacement: switch (json['replacement']) {
      null => null,
      Object $1 => decodeString($1),
    },
    state: switch (json['state']) {
      null => null,
      Object $1 => decodeString($1),
    },
  );
}