JsonIntegerNumberOrNull.parse constructor

JsonIntegerNumberOrNull.parse({
  1. required String key,
  2. required String? data,
})

Construct a new JsonIntegerNumberOrNull instance by parsing the data as int value.

Implementation

factory JsonIntegerNumberOrNull.parse({
  required String key,
  required String? data,
}) =>
    JsonIntegerNumberOrNull(
        key: key, data: data == null ? null : int.parse(data));