decode static method

DataSource decode(
  1. Object message
)

Implementation

static DataSource decode(Object message) {
  final Map<Object?, Object?> pigeonMap = message as Map<Object?, Object?>;
  return DataSource(
    id: pigeonMap['id'] as int? ?? -1,
    name: pigeonMap['name'] as String? ?? '',
    status: pigeonMap['status'] as int? ?? -1,
    flags: pigeonMap['flags'] as int? ?? 0,
  );
}