decode static method

CaptureVersion decode(
  1. Object message
)

Implementation

static CaptureVersion decode(Object message) {
  final Map<Object?, Object?> pigeonMap = message as Map<Object?, Object?>;
  return CaptureVersion()
    ..major = pigeonMap['major'] as int?
    ..middle = pigeonMap['middle'] as int?
    ..minor = pigeonMap['minor'] as int?
    ..build = pigeonMap['build'] as int?
    ..year = pigeonMap['year'] as int?
    ..month = pigeonMap['month'] as int?
    ..day = pigeonMap['day'] as int?
    ..hour = pigeonMap['hour'] as int?
    ..minute = pigeonMap['minute'] as int?;
}