parse static method

ModelTimestamp parse(
  1. String formattedString
)

Parse from formattedString and convert to ModelTimestamp.

If the conversion fails, a FormatException is raised.

formattedStringからパースしてModelTimestampに変換します。

変換に失敗した場合はFormatExceptionが発生します。

Implementation

static ModelTimestamp parse(String formattedString) {
  final dateTime = DateTime.parse(formattedString);
  return ModelTimestamp(dateTime);
}