Skip to content

Instantly share code, notes, and snippets.

@umuieme
Created December 13, 2022 09:00
Show Gist options
  • Save umuieme/95955a74b3b1462acdd28554e4983419 to your computer and use it in GitHub Desktop.
Save umuieme/95955a74b3b1462acdd28554e4983419 to your computer and use it in GitHub Desktop.
import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:flutter/foundation.dart';
part '$filename$.freezed.dart';
part '$filename$.g.dart';
@freezed
class $className$ with _$$$className${
const factory $className$({
$end$
}) = _$className$;
factory $className$.fromJson(Map<String, Object?> json)
=> _$$$className$FromJson(json);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment